package cn.xunjie.ymcc.feign;

import cn.xunjie.ymcc.domain.Login;
import cn.xunjie.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFeignClientFallBackFactory.class)
public interface LoginFeignClient {


    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JSONResult save(@RequestBody Login login);

    @RequestMapping(value = "/login/list",method = RequestMethod.GET)
    JSONResult list();


}
